package zipcode.model;

import java.sql.SQLException;
import java.util.ArrayList;
import java.util.HashMap;

import org.springframework.orm.ibatis.SqlMapClientTemplate;

import to.ZipcodeTO;

public class ZipcodeDAO {
	private SqlMapClientTemplate sqlMap;
	public ZipcodeDAO(SqlMapClientTemplate sqlMap){
		this.sqlMap = sqlMap;
	}
	
	
	@SuppressWarnings("unchecked")
	public ArrayList<ZipcodeTO> selectMemberByCondition(HashMap<?,?> condition) throws SQLException{
		return (ArrayList<ZipcodeTO>) sqlMap.queryForList("selectAddress", condition);
	}
}
